import request from '@/utils/request'

export function users(params) {
  return request({
    url: '/pm/users/users',
    method: 'get',
    params
  })
}

export function deleteById(id) {
  return request({
    url: '/pm/users/deleteById?id='+id,
    method: 'post'
  })
}
export function deleteByIds(data) {
  return request({
    url: '/pm/users/deleteByIds',
    method: 'post',
    data
  })
}
export function addUsers(data) {
  return request({
    url: '/pm/users/add',
    method: 'post',
    data
  })
}
export function updateUsers(data) {
  return request({
    url: '/pm/users/update',
    method: 'post',
    data
  })
}

